home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_11
/
phillip2
/
makefile
< prev
next >
Wrap
Makefile
|
1993-10-10
|
18KB
|
815 lines
######################################################
#
# Dwayne Phillips
# The C Image Processing System
# written for
# The C Users Journal
# 1990-1993
#
# This makefile uses Microsoft's nmake
# program. See "Microsoft C Advanced Programming
# Techniques," Chapter 6, Microsoft Corp., 1990.
#
#
# C O N T E N T S
#
# Define Macros
# Compile Source Files
# Composite Files
# CIPS Programs
# CIPS Backups
# cipscat
# fit
#
######################################################
#
# D E F I N E M A C R O S
#
# Microsoft C 6.0 commands
# compile options
# /AL = large memory model
# /c = do not create .exe file
# /Zi = prepare for Codeview
# /Od = remove optimization for Codeview
# /G2 = create 80286 code instead of 8086 code
#
# linker options
# /CO = prepare for Codeview
# /STACK:50000 = allocate 50000 bytes for stack
#
# Define the compile command for the large model
CC = CL /AL /c
# Define the compile command for the large model
# and the Codeview debugger
CCV = CL /AL /Zi /od /c
# Define the compile and link in one command
CAL = CL /AL /o
# Define the Codeview and stack command
# for the linker commands.
# The $* means the target's base name
# with no extensions. So
# /STACK:40000,$*,$*; equals
# /STACK:40000,toc,toc;
ST40K = /STACK:40000,$*,$*;
ST45K = /STACK:45000,$*,$*;
ST50K = /STACK:50000,$*,$*;
COST40K = /CO /STACK:40000,$*,$*;
COST45K = /CO /STACK:45000,$*,$*;
COST50K = /CO /STACK:50000,$*,$*;
# NOTE: When I installed my Microsoft C, I
# included the Microsoft graphics library
# in the main library. If you did not
# do this, you should use the following
# for the stack linker commands (assuming
# you installed Microsoft C in d:):
#
#ST40K = /STACK:40000,$*,$*,d:\c600\lib\graphics.lib;
#ST45K = /STACK:45000,$*,$*,d:\c600\lib\graphics.lib;
#ST50K = /STACK:50000,$*,$*,d:\c600\lib\graphics.lib;
#COST40K = /CO /STACK:40000,$*,$*,d:\c600\lib\graphics.lib;
#COST45K = /CO /STACK:45000,$*,$*,d:\c600\lib\graphics.lib;
#COST50K = /CO /STACK:50000,$*,$*,d:\c600\lib\graphics.lib;
######################################################
#
# C O M P I L E S O U R C E F I L E S
#
pattern.obj : pattern.c cips.h
$(CC) pattern.c
segment3.obj : segment3.c cips.h
$(CC) segment3.c
roundoff.obj : roundoff.c cips.h
$(CC) roundoff.c
ndir.obj : ndir.c
$(CC) ndir.c
tiff.obj : tiff.c cips.h
$(CC) tiff.c
gin.obj : gin.c cips.h
$(CC) gin.c
rstring.obj : rstring.c cips.h
$(CC) rstring.c
texture.obj : texture.c cips.h
$(CC) texture.c
xtra.obj : xtra.c cips.h
$(CC) xtra.c
txtrsubs.obj : txtrsubs.c cips.h
$(CC) txtrsubs.c
mrw.obj : mrw.c cips.h
$(CC) mrw.c
mof.obj : mof.c cips.h
$(CC) mof.c
rtiff.obj : rtiff.c cips.h
$(CC) rtiff.c
cips.obj : cips.c cips.h
$(CC) cips.c
show.obj : show.c cips.h
$(CC) show.c
cipspr.obj : cipspr.c cips.h
$(CC) cipspr.c
gpcips.obj : gpcips.c cips.h
$(CC) gpcips.c
mymsc.obj : mymsc.c cips.h
$(CC) mymsc.c
fwrite.obj : fwrite.c cips.h
$(CC) fwrite.c
numcvrt.obj : numcvrt.c cips.h
$(CC) numcvrt.c
display.obj : display.c cips.h
$(CC) display.c
# xdisplay.c is a version of display.c
# containing experimental code that
# is not used in CIPS
xdisplay.obj : xdisplay.c cips.h
$(CC) xdisplay.c
hist.obj : hist.c cips.h
$(CC) hist.c
strappnd.obj : strappnd.c cips.h
$(CC) strappnd.c
pi.obj : pi.c cips.h
$(CC) pi.c
ht.obj : ht.c cips.h
$(CC) ht.c
djet.obj : djet.c cips.h
$(CC) djet.c
filter.obj : filter.c cips.h
$(CC) filter.c
addsub.obj : addsub.c cips.h
$(CC) addsub.c
rotate.obj : rotate.c cips.h
$(CC) rotate.c
cutp.obj : cutp.c cips.h
$(CC) cutp.c
scale.obj : scale.c cips.h
$(CC) scale.c
mainas.obj : mainas.c cips.h
$(CC) mainas.c
mainr.obj : mainr.c cips.h
$(CC) mainr.c
maincp.obj : maincp.c cips.h
$(CC) maincp.c
main422.obj : main422.c cips.h
$(CC) main422.c
half.obj : half.c cips.h
$(CC) half.c
double.obj : double.c cips.h
$(CC) double.c
side.obj : side.c cips.h
$(CC) side.c
edge.obj : edge.c cips.h
$(CC) edge.c
edge2.obj : edge2.c cips.h
$(CC) edge2.c
edge3.obj : edge3.c cips.h
$(CC) edge3.c
wtiff.obj : wtiff.c cips.h
$(CC) wtiff.c
create.obj : create.c cips.h
$(CC) create.c
wtiffh.obj : wtiffh.c cips.h
$(CC) wtiffh.c
boole.obj : boole.c cips.h
$(CC) boole.c
boolean.obj : boolean.c cips.h
$(CC) boolean.c
overlay.obj : overlay.c cips.h
$(CC) overlay.c
ed.obj : ed.c cips.h
$(CC) ed.c
skeleton.obj : skeleton.c cips.h
$(CC) skeleton.c
mainsk.obj : mainsk.c cips.h
$(CC) mainsk.c
invert.obj : invert.c cips.h
$(CC) invert.c
mainover.obj : mainover.c cips.h
$(CC) mainover.c
mainedge.obj : mainedge.c cips.h
$(CC) mainedge.c
mainhist.obj : mainhist.c cips.h
$(CC) mainhist.c
mainfilt.obj : mainfilt.c cips.h
$(CC) mainfilt.c
mainseg.obj : mainseg.c cips.h
$(CC) mainseg.c
main2seg.obj : main2seg.c cips.h
$(CC) main2seg.c
main3seg.obj : main3seg.c cips.h
$(CC) main3seg.c
fixt.obj : fixt.c cips.h
$(CC) fixt.c
unfixt.obj : unfixt.c cips.h
$(CC) unfixt.c
segment.obj : segment.c cips.h
$(CC) segment.c
segment2.obj : segment2.c cips.h
$(CC) segment2.c
###############################################
#
# C O M P O S I T E F I L E S
#
# Composite files are like small libraries.
# A composite file contains several .c file
# concatenated together. This makes the
# command lines shorter for linking the .obj
# files into .exe files.
#
# The cipscat program (see end of makefile)
# concatenates these together automatically.
#
#
#
#
# COMPOSITE FILE
# tiffs.c = rtiff.c + wtiff.c + tiff.c
tiffs.obj : tiffs.c cips.h
$(CC) tiffs.c
tiffs.c: rtiff.c wtiff.c tiff.c
cipscat rtiff.c wtiff.c tiff.c -o tiffs.c
# COMPOSITE FILE
# cips2.c = rstring + mof + mrw + gpcips
# + numcvrt + strappnd
#
# The above was changed to the below
# 12 May 1993
#
# cips2.c = gpcips + numcvrt + mymsc.c
cips2.obj : cips2.c cips.h
$(CC) cips2.c
cips2.c: gpcips.c numcvrt.c mymsc.c
cipscat gpcips.c numcvrt.c mymsc.c -o cips2.c
# COMPOSITE FILE
# cips3.c = addsub + cutp + rotate
cips3.obj : cips3.c cips.h
$(CC) cips3.c
cips3.c: addsub.c cutp.c rotate.c
cipscat addsub.c cutp.c rotate.c -o cips3.c
# COMPOSITE FILE
# cips4.c = gin + fwrite + hist + pi + ht
#
# The above was changed to the below
# 12 May 1993
#
# cips4.c = gin + hist + pi + ht
cips4.obj : cips4.c cips.h
$(CC) cips4.c
cips4.c: gin.c hist.c pi.c ht.c
cipscat gin.c hist.c pi.c ht.c -o cips4.c
# COMPOSITE FILE
# cips5.c = boole + overlay + txtrsubs
cips5.obj : cips5.c cips.h
$(CC) cips5.c
cips5.c: boole.c overlay.c txtrsubs.c
cipscat boole.c overlay.c txtrsubs.c -o cips5.c
# COMPOSITE FILE
# edges.c = edge.c + edge2.c + edge3.c
edges.obj : edges.c cips.h
$(CC) edges.c
edges.c: edge.c edge2.c edge3.c
cipscat edge.c edge2.c edge3.c -o edges.c
# COMPOSITE FILE
# segments.c = segment.c + segment2.c
segments.obj : segments.c cips.h
$(CC) segments.c
segments.c: segment.c segment2.c
cipscat segment.c segment2.c -o segments.c
# COMPOSITE FILE
# morph.c = ed.c + skeleton.c
morph.obj : morph.c cips.h
$(CC) morph.c
morph.c: ed.c skeleton.c
cipscat ed.c skeleton.c -o morph.c
######################################################
#
# C I P S P R O G R A M S
#
# Special make targets:
# allip - makes all .exe's - may not